package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpdcn
 * @since 2020-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_pic_store")
@ApiModel(value="ShopPicStoreEntity对象", description="")
public class ShopPicStoreEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "账户id")
    @ApiModelProperty("账户id")
    private Long accountId;

    @Column(comment = "分组id")
    @ApiModelProperty(value = "分组id")
    private Long groupId;

    @Column(comment = "分组名称")
    @ApiModelProperty("分组名称")
    @TableField(exist = false)
    private String groupName;

    @Column(comment = "类型")
    @ApiModelProperty(value = "类型")
    private String type;

    @Column(comment = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    @Column(comment = "高度")
    @ApiModelProperty(value = "高度")
    private Integer height;

    @Column(comment = "宽度")
    @ApiModelProperty(value = "宽度")
    private Integer width;

    @Column(comment = "资源大小，单位kb")
    @ApiModelProperty(value = "资源大小，单位kb")
    private Long size;

    @Column(comment = "资源路径")
    @ApiModelProperty(value = "资源路径")
    private String url;

    @Column(comment = "状态：0-停用；1-启用")
    @ApiModelProperty(value = "状态：0-停用；1-启用")
    private String status;

    @Column(comment = "上传时间")
    @ApiModelProperty(value = "上传时间")
    private LocalDateTime createTime;

    @Column(comment = "创建人")
    @ApiModelProperty(value = "创建人")
    private Long createBy;


}
